<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>

  <div id="root">
    <h1>{{name}}</h1>
    </div>

    <script type="text/javascript" >
     const v =  new Vue({
    //    el: "#root",
        // data:{
        //     name: "你好"
        // }
        data(){
            return{
                name: "你好"
            }
        }
     })
      v.$mount('#root')
        </script>
</body>
</html>